package com.sinocare.project.common.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 检测结果表(SccMedicalResult)表实体类
 *
 * @author makejava
 * @since 2021-12-20 19:02:13
 */
@Data
@SuppressWarnings("serial")
@TableName(value = "scc_medical_result")
public class SccMedicalResult extends Model<SccMedicalResult> {
    //主键、检测结果id
    @TableId(value = "result_id",type = IdType.AUTO)
    private Integer resultId;
    //检测者id
    private Integer patiemtId;
    //检测员id
    private Integer surveyorId;
    //BMI身体质量指数
    private Double bmiResult;
    //血糖值
    private Double gluResult;
    //血糖食物状态(指的是空腹\餐后\随机)
    private Integer gluFoodStatus;
    //糖化血红蛋白
    private String hbalcResult;
    //血尿酸
    private Integer uaResult;
    //高密度脂蛋白固醇
    private Double hdlCResult;
    //低密度脂蛋白固醇
    private Double ldlCResult;
    //甘油三脂
    private Double tgResult;
    //总胆固醇
    private Double cholResult;
    //总胆/高密比值
    private Double tcHdlCResult;
    //血酮
    private Double ketResult;
    //收缩压
    private Integer sbpResult;
    //舒张压
    private Integer dbpResult;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date createTime;
    //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date updateTime;
    //检测时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date testTime;
    //状态
    private Integer status;
    //备注
    private String remark;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.resultId;
    }
}

